import { ResultEnum } from '@/apis/http/httpEnum'
import { getApiCertApplyLogApi } from '@/apis/modules/license'

export const getLog = (id: string) => {
  return new Promise((resolve, reject) => {
    getApiCertApplyLogApi({ id })
      .then((res: any) => {
        if (res.code !== ResultEnum.SUCCESS) {
          ToastUtils.error(res.message)
          reject(false)
        }
        resolve(true)
      })
      .catch(() => {
        reject('获取日志失败')
      })
  })
}
